package com.gakj.truck.third.api.mapper;

import com.gakj.truck.third.core.annotation.MyBatisMapper;
import com.gakj.truck.third.core.domain.TruckOuman;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisMapper
public interface TruckOumanMapper {

    List<TruckOuman> getAll();

    Long save(TruckOuman truckOuman);

    TruckOuman getById(@Param(value = "id") Long id);

    void delete(@Param(value = "id") Long id);

    TruckOuman getByOumanid(@Param(value = "truckId") Long truckId);

    void update(TruckOuman truckOuman);

    void batchSave(@Param(value = "list") List<TruckOuman> list);

    List<TruckOuman> getNotSaveData();

    public TruckOuman getOumanBySourceAndOumanId(@Param(value = "source") String source,@Param(value = "truckId") Long truckId);

}
